package com.jevons.muffin.net.bean;

/**
 * 自定义下载响应
 * @author linaisheng
 * Created at 2019/3/25.
 */

public class DownloadResponse {

    //响应类型
    public enum Type {
        SUCCESS,    //成功
        ERROR,      //失败
        PROGRESS    //进度
    }

    private String file;
    private Type type;
    private String content;

    public DownloadResponse(Type type, String content) {
        this.type = type;
        this.content = content;
    }

    public DownloadResponse(String file, Type type, String content) {
        this.file = file;
        this.type = type;
        this.content = content;
    }

    public String getFile() {
        return file;
    }

    public Type getType() {
        return type;
    }

    public String getContent() {
        return content;
    }
}
